package com.xiaoma.weakreference;

/**
 * @author xiaomacdut
 * @date 2020年2月15日 下午2:41:45
 */
public class Car{
    
    private double price;
    private String colour;
    
    
    /**
     * 
     */
    public Car(){
        super();
    }
    
    public Car(double price, String colour){
        this.price = price;
        this.colour = colour;
    }
    
    public double getPrice(){
        return price;
    }
    
    public void setPrice(double price){
        this.price = price;
    }
    
    public String getColour(){
        return colour;
    }
    
    public void setColour(String colour){
        this.colour = colour;
    }
    
    public String toString(){
        return colour + "car costs $" + price;
    }
}
